package com.shop.entity;
/*CREATE TABLE merchantaddress (
   `id` BIGINT(16) NOT NULL auto_increment PRIMARY KEY COMMENT '商户地址编号',
   `province` VARCHAR(20) NULL COMMENT '省份',
   `city` VARCHAR(20) NULL COMMENT '城市',
   `street` VARCHAR(50) NULL COMMENT '街道信息',
   `m_id` BIGINT(16) COMMENT '商户编号'
)ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;*/
/**
 * 
 * <b>可供会员和商户使用<b>
 * <pre>
 * 
 * </pre>
 * @author 威 
 * <br>2018年1月2日 下午2:17:47 
 *
 */
public class MerchantAddress {
	private Integer id ;
	private String province ;
	private String city ;
	private String street ;
	private Merchant merchant ;


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getProvince() {
		return province;
	}


	public void setProvince(String province) {
		this.province = province;
	}


	public String getCity() {
		return city;
	}


	public void setCity(String city) {
		this.city = city;
	}


	public String getStreet() {
		return street;
	}


	public void setStreet(String street) {
		this.street = street;
	}


	public Merchant getMerchant() {
		return merchant;
	}


	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}


	public String toString(){
		return "Address[id="+id+
				",province="+province+
				",city="+city+
				",street="+street+
				",merchantId="+merchant.getId()+"]" ;
	}
}
